package mac.types.interfacePedlInstr;
import java.util.*;

public class LocalObjectVar extends Variable {
  public String getObjectName() {
    return hd(name.substring(0, name.indexOf('(')));
  }
  public String getMethodName() {
    return tl(name.substring(0, name.indexOf('(')));
  }
  public String getVariableName() {
    return name.substring(name.indexOf(')')+2);
  }
  public String[] getParameterTypes() {
    String[] types;
    StringTokenizer s;

    s = new StringTokenizer(name.substring(name.indexOf('(')+1, name.indexOf(')')), ",");
    types = new String[s.countTokens()];
    for( int i = 0; s.hasMoreTokens(); i++ ) 
      types[i] = s.nextToken();
    return types;
  }
}
